package com.cs.noTender.controller;

import com.cs.noTender.service.CsLineItemsService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/items")
public class CsLineItemsController extends BaseController {
    private final CsLineItemsService csLineItemsService;

    public CsLineItemsController(CsLineItemsService csLineItemsService) {
        this.csLineItemsService = csLineItemsService;
    }

    /**
     * 查询非招标对应的产品信息
     */
    @GetMapping("/getItemsDevice")
    public TableDataInfo selectItemsDevice(String aid) {
        System.out.println("aid:"+aid);
        System.out.println(csLineItemsService.listItemsDevice(aid));
        return getDataTable(csLineItemsService.listItemsDevice(aid));
    }
}
